﻿// <copyright file="Utilities.cs" company="Gravity Age Studios">
// Code released under the MIT license (see License.txt).
// </copyright>
// <author>Vicente Cartas Espinel</author>
// <email>vicente.cartas@gmail.com</email>
namespace LightSwitchApplication.Rules
{
    public static class Utilities
    {
        /// <summary>
        /// Masks a value for public summaries.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <returns>The masked value.</returns>
        public static string MaskValue(int value)
        {
            if (value >= 0 && value <= 2)
            {
                return "L";
            }

            if (value >= 3 && value <= 5)
            {
                return "M";
            }

            if (value >= 6)
            {
                return "H";
            }

            return "-";
        }
    }
}
